<?php
/*  
  Copyright (c) 2010-02 SongCMS 
  SongCMS All Rights Reserved. 
  Support:www.SongCMS.com
  QQ:544255858   19951025
  Author:Song  Version:3.17
  Date:2010-08-12 09:28:32
*/
if(!empty($_POST['Title'])){
	$Content = NULL;
	foreach ($_POST as $i => $n){
		if($i != 'Re' && $i != 'Title') $Content .= $i . '：<br />' . str_replace(chr(10),'<br />',$n) . '<br /><br />';
	}
	$mail = new email(true);
	$mail->IsSMTP();
	$nURL = URL();
	$nURL = $nURL['Feedback'];
	try {
		$mail->SMTPDebug  = 0; 
		$mail->SMTPAuth   = true; 
		$mail->CharSet	  = "utf-8"; 
		$mail->Host       = $WebSMTP; 
		$mail->Port       = 25; 
		$mail->Username   = $WebMailName; 
		$mail->Password   = $WebMailWord; 
		$mail->SetFrom($WebMailAddress,$WebMailName); 
		$mail->AddAddress($_POST['Re'],$WebConfig['WebTitle']); 
		$mail->Subject = $_POST['Title'];
		$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; 
		$mail->MsgHTML($Content);
		$mail->Send();
		MsgBox(1,$Warning[13],$nURL);
	} catch (Exception $e) {
		MsgBox(1,$Warning[14] . '\n' . $e->getMessage(),$nURL);
	}
}
$product = new product();
$product -> Lang = $Lang;
$product -> Ltext = $Html['page'];
$SC -> register -> templateObject("product",$product);
$news = new news();
$news -> Lang = $Lang;
$news -> Ltext = $Html['page'];
$SC -> register -> templateObject("news",$news);
$article = new article();
$article -> Lang = $Lang;
$article -> Ltext = $Html['page'];
$SC -> register -> templateObject("article",$article);
$SC -> register -> templateObject("sdb",$sdb);
include_once($CodeList . 'top.php');
include_once($CodeList . 'bottom.php');
$SC -> display($TemFile,$GetUrlPar);
?>